<?php

namespace App\Http\Controllers\frontend;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class FrontendController extends Controller
{
    //
    public function welcome(Request $request)
    {
        $content = $request->text;

        if($content) {
            $src = htmlspecialchars_decode($content);
            $cleanText = clean($src,'user_topic_body');
            \Log::info($content);
            \Log::info($src);
            \Log::info(clean($content,'user_topic_body'));
            \Log::info(clean($content));
            \Log::info($cleanText);
        }

        return view('frontend.welcome');
    }
}
